import modules from "./modules"
export default [{
        path: '/',
        component: resolve => require(['../views/home'], resolve),
        meta: {
            module: "home",
            authority:true,
        },
        children: [{
                path: '/',
                name: 'home',
                component: resolve => require(['../views/index/index'], resolve),
                meta: {
                    module: "home",
                    keepAlive: true,
                    authority:true,
                    title: "首页",
                    isShowBreadcrumb: false, //是否开启面包屑导航
                }
            },
            ...modules
        ]
    },
    {
        path: '/login',
        name: 'login',
        component: resolve => require(['../views/login'], resolve),
        meta: {
            module: "login",
        }
    },
    {
        path: '*',
        name: '404',
        component: resolve => require(['../views/error/404.vue'], resolve),
        meta: {
            module: "404",
        }
    }
];